package com.itheima.service;

import com.itheima.entity.HealthAdvice;
import com.itheima.entity.Result;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;
import com.itheima.pojo.MemberInfo;

import java.util.List;
import java.util.Map;

//服务接口
public interface MemberService {
    //根据手机号查询会员
    public Member findByTelephone(String telephone);
    public void add(Member member);
    public List<Integer> findMemberCountByMonths(List<String> months);

    //更新会员信息
    Result update(Member member);

    //通过会员id查询相关健康信息
    HealthAdvice findHealthAdvice(Integer id);
    public PageResult pageQuery(QueryPageBean queryPageBean);

    public void deleteById(Integer id);

    public void edit(Member member);

    public Member findById(Integer id);

    public List<Member> findAll();

    List<MemberInfo> findByIds(Integer[] ids);

    Member findByTel(String phoneNumber);

    List<Integer> findOrderByMemId(Integer id);

    Member findByFileNumber(String fileNumber);
}
